//
//  LGCycleScrollView.h
//  InfiniteLoop
//
//  Created by 徐冉 on 2018/12/13.
//  Copyright © 2018年 LG. All rights reserved.
//

#import <SDCycleScrollView/SDCycleScrollView.h>

NS_ASSUME_NONNULL_BEGIN

typedef enum : NSUInteger {
    LGCycleScrollViewDirectionLeft,
    LGCycleScrollViewDirectionRight,
} LGCycleScrollViewDirection;

typedef void(^LGCycleScrollViewDidScrollBlock)(UIScrollView*);
typedef void(^LGCycleScrollViewDidEndScrollBlock)(UIScrollView*);

@interface LGCycleScrollView : SDCycleScrollView

@property (copy, nonatomic) LGCycleScrollViewDidScrollBlock scrollViewDidScrollBlock;
@property (copy, nonatomic) LGCycleScrollViewDidEndScrollBlock scrollViewDidEndScrollBlock;
//当前滑动方向
@property (assign, nonatomic) LGCycleScrollViewDirection direction;

@property (assign, nonatomic) NSInteger curIndex;

@property (assign, nonatomic) CGPoint lastOffset;

@end

NS_ASSUME_NONNULL_END
